package com.candiq.beans;

public class HelloWhoBean {

	public HelloWhoBean(Person who) {
		this.person = who;
		System.out.println( "[HelloWhoBean's contr]" );
	}
	
	private void init()
	{
	System.out.println( "[HelloWhoBean's Init method]" );
	}

	private Person person;
	private ILanguage currentLanguage;
	
	public void setCurrentLanguage( ILanguage currentLanguage)
	{
		this.currentLanguage = currentLanguage;
	}
	
	public void Say() {
		String hellowords = "Hi " + person.getName() + ", I know you are " + person.getAge() + " years old, and your email is " + person.getEmail() + "\n I'm HelloWho bean";
		System.out.println( hellowords );
		System.out.println("I'm using " + currentLanguage.GetName() );
	}
}
